x86: fold code in load_segments()
authorJan Beulich <jbeulich@suse.com>
Thu, 15 Sep 2016 08:07:48 +0000 (10:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 15 Sep 2016 08:07:48 +0000 (10:07 +0200)
commit167291f0d6b87ccb1f1f4c4f73e9231b811ead03
tree300ec218fa9c7d4d14cc1aa90f2d7992d8d278bb
parent5ae7811c5c2b94c43930858d2e2880bc10cbf242
x86: fold code in load_segments()

No need to have the same logic twice. (Note that the type change does
not affect the put_user() instances, as they derive their access size
from the second [pointer] argument.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c